import { useParams } from "react-router-dom"

const Home2 = () => {

    const params = useParams()
    return (
        <div>
            <h1>Home2</h1>
            <h2>我是login传递的参数{params.id}-{params.name}</h2>
        </div>
    )
}

export default Home2